<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRTgles2Ext.h</h1><a href="PVRTgles2Ext_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         PVRTgles2Ext.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        PVRTgles2Ext</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     Independent</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  OpenGL ES 2.0 extensions</span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 <span class="preprocessor">#ifndef _PVRTGLES2EXT_H_</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#define _PVRTGLES2EXT_H_</span>
00018 <span class="preprocessor"></span>
00019 <span class="preprocessor">#ifdef __APPLE__</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#ifdef TARGET_OS_IPHONE</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#import &lt;OpenGLES/ES2/gl.h&gt;</span>
00022 <span class="preprocessor">#import &lt;OpenGLES/ES2/glext.h&gt;</span>
00023 <span class="comment">// No binary shaders are allowed on the iphone and so this value is not defined</span>
00024 <span class="comment">// Defining here allows for a more graceful fail of binary shader loading at runtime</span>
00025 <span class="comment">// which can be recovered from instead of fail at compile time</span>
00026 <span class="preprocessor">#define GL_SGX_BINARY_IMG 0</span>
00027 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#include &lt;EGL/egl.h&gt;</span>
00029 <span class="preprocessor">#include &lt;GLES2/gl2.h&gt;</span>
00030 <span class="preprocessor">#include &lt;GLES2/gl2ext.h&gt;</span>
00031 <span class="preprocessor">#include &lt;GLES2/gl2extimg.h&gt;</span>
00032 <span class="preprocessor">#endif</span>
00033 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00034 <span class="preprocessor"></span><span class="preprocessor">#if defined(__BADA__)</span>
00035 <span class="preprocessor"></span><span class="preprocessor">#include &lt;FGraphicsOpengl2.h&gt;</span>
00036 <span class="keyword">using</span> <span class="keyword">namespace </span>Osp::Graphics::Opengl;
00037 <span class="preprocessor">#else</span>
00038 <span class="preprocessor"></span><span class="preprocessor">#if !defined(EGL_NOT_PRESENT)</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#include &lt;EGL/egl.h&gt;</span>
00040 <span class="preprocessor">#endif</span>
00041 <span class="preprocessor"></span><span class="preprocessor">#include &lt;GLES2/gl2.h&gt;</span>
00042 <span class="preprocessor">#include &lt;GLES2/gl2ext.h&gt;</span>
00043 <span class="preprocessor">#endif</span>
00044 <span class="preprocessor"></span><span class="preprocessor">#include &lt;GLES2/gl2extimg.h&gt;</span>
00045 <span class="preprocessor">#endif</span>
00046 <span class="preprocessor"></span>
00047 <span class="comment">/****************************************************************************</span>
00048 <span class="comment">** Build options</span>
00049 <span class="comment">****************************************************************************/</span>
00050 
00051 <span class="preprocessor">#define GL_PVRTGLESEXT_VERSION 2</span>
00052 <span class="preprocessor"></span>
00053 <span class="comment">/**************************************************************************</span>
00054 <span class="comment">****************************** GL EXTENSIONS ******************************</span>
<a name="l00055"></a><a class="code" href="PVRTgles2Ext_8h.html#a0">00055</a> <span class="comment">**************************************************************************/</span>
00056 
00057 <span class="keyword">class </span><a class="code" href="classCPVRTgles2Ext.html">CPVRTgles2Ext</a>
00058 {
00059 
00060 <span class="keyword">public</span>:
<a name="l00061"></a><a class="code" href="classCPVRTgles2Ext.html">00061</a>     <span class="comment">/* Type definitions for pointers to functions returned by eglGetProcAddress*/</span>
00062     <span class="keyword">typedef</span> <a class="code" href="classCPVRTgles2Ext.html#a0">void</a> (GL_APIENTRY *PFNGLMULTIDRAWELEMENTS) (GLenum mode, GLsizei *<a class="code" href="classCPVRTgles2Ext.html#w0">count</a>, GLenum <a class="code" href="classCPVRTgles2Ext.html#w1">type</a>, <span class="keyword">const</span> GLvoid **<a class="code" href="classCPVRTgles2Ext.html#w2">indices</a>, GLsizei <a class="code" href="classCPVRTgles2Ext.html#w3">primcount</a>); <span class="comment">// glvoid</span>
00063     <span class="keyword">typedef</span> <span class="keywordtype">void</span>* (GL_APIENTRY *<a class="code" href="classCPVRTgles2Ext.html#w4">PFNGLMAPBUFFEROES</a>)(GLenum target, GLenum access);
00064     <span class="keyword">typedef</span> GLboolean (GL_APIENTRY *<a class="code" href="classCPVRTgles2Ext.html#w5">PFNGLUNMAPBUFFEROES</a>)(GLenum target);
00065     <span class="keyword">typedef</span> <a class="code" href="classCPVRTgles2Ext.html#a0">void</a> (GL_APIENTRY *<a class="code" href="classCPVRTgles2Ext.html#w6">PFNGLGETBUFFERPOINTERVOES</a>)(GLenum target, GLenum pname, <span class="keywordtype">void</span>** params);
<a name="l00066"></a><a class="code" href="classCPVRTgles2Ext.html#w1">00066</a>     <span class="keyword">typedef</span> <a class="code" href="classCPVRTgles2Ext.html#a0">void</a> (GL_APIENTRY * PFNGLMULTIDRAWARRAYS) (GLenum mode, GLint *<a class="code" href="classCPVRTgles2Ext.html#w7">first</a>, GLsizei *<a class="code" href="classCPVRTgles2Ext.html#w0">count</a>, GLsizei <a class="code" href="classCPVRTgles2Ext.html#w3">primcount</a>); <span class="comment">// glvoid</span>
<a name="l00067"></a><a class="code" href="classCPVRTgles2Ext.html#w4">00067</a>     <span class="keyword">typedef</span> <a class="code" href="classCPVRTgles2Ext.html#a0">void</a> (GL_APIENTRY * <a class="code" href="classCPVRTgles2Ext.html#w10">PFNGLDISCARDFRAMEBUFFEREXT</a>)(GLenum target, GLsizei numAttachments, <span class="keyword">const</span> GLenum *attachments);
<a name="l00068"></a><a class="code" href="classCPVRTgles2Ext.html#w5">00068</a> 
<a name="l00069"></a><a class="code" href="classCPVRTgles2Ext.html#w6">00069</a>     <span class="comment">/* GL_EXT_multi_draw_arrays */</span>
<a name="l00070"></a><a class="code" href="classCPVRTgles2Ext.html#w9">00070</a>     PFNGLMULTIDRAWELEMENTS              <a class="code" href="classCPVRTgles2Ext.html#o0">glMultiDrawElementsEXT</a>;
<a name="l00071"></a><a class="code" href="classCPVRTgles2Ext.html#w10">00071</a>     PFNGLMULTIDRAWARRAYS                <a class="code" href="classCPVRTgles2Ext.html#o1">glMultiDrawArraysEXT</a>;
00072 
00073     <span class="comment">/* GL_EXT_multi_draw_arrays */</span>
<a name="l00074"></a><a class="code" href="classCPVRTgles2Ext.html#o0">00074</a>     <a class="code" href="classCPVRTgles2Ext.html#w4">PFNGLMAPBUFFEROES</a>                   <a class="code" href="classCPVRTgles2Ext.html#o2">glMapBufferOES</a>;
<a name="l00075"></a><a class="code" href="classCPVRTgles2Ext.html#o1">00075</a>     <a class="code" href="classCPVRTgles2Ext.html#w5">PFNGLUNMAPBUFFEROES</a>                 <a class="code" href="classCPVRTgles2Ext.html#o3">glUnmapBufferOES</a>;
00076     <a class="code" href="classCPVRTgles2Ext.html#w6">PFNGLGETBUFFERPOINTERVOES</a>           <a class="code" href="classCPVRTgles2Ext.html#o4">glGetBufferPointervOES</a>;
00077 
<a name="l00078"></a><a class="code" href="classCPVRTgles2Ext.html#o2">00078</a>     <span class="comment">/* GL_EXT_discard_framebuffer */</span>
<a name="l00079"></a><a class="code" href="classCPVRTgles2Ext.html#o3">00079</a>     <a class="code" href="classCPVRTgles2Ext.html#w10">PFNGLDISCARDFRAMEBUFFEREXT</a>          <a class="code" href="classCPVRTgles2Ext.html#o5">glDiscardFramebufferEXT</a>;
<a name="l00080"></a><a class="code" href="classCPVRTgles2Ext.html#o4">00080</a> 
00081 <span class="keyword">public</span>:
00082     <span class="comment">/*!***********************************************************************</span>
<a name="l00083"></a><a class="code" href="classCPVRTgles2Ext.html#o5">00083</a> <span class="comment">    @Function           LoadExtensions</span>
00084 <span class="comment">    @Description        Initialises IMG extensions</span>
00085 <span class="comment">    *************************************************************************/</span>
00086     <span class="keywordtype">void</span> <a class="code" href="classCPVRTgles2Ext.html#a2">LoadExtensions</a>();
00087 
00088     <span class="comment">/*!***********************************************************************</span>
00089 <span class="comment">    @Function           IsGLExtensionSupported</span>
00090 <span class="comment">    @Input              extension extension to query for</span>
00091 <span class="comment">    @Returns            True if the extension is supported</span>
00092 <span class="comment">    @Description        Queries for support of an extension</span>
00093 <span class="comment">    *************************************************************************/</span>
00094     <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCPVRTgles2Ext.html#e0">IsGLExtensionSupported</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *extension);
00095 };
00096 
00097 <span class="preprocessor">#endif </span><span class="comment">/* _PVRTGLES2EXT_H_ */</span>
00098 
00099 <span class="comment">/*****************************************************************************</span>
00100 <span class="comment"> End of file (PVRTgles2Ext.h)</span>
00101 <span class="comment">*****************************************************************************/</span>
00102 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
